<span class="entry_date_span">
  <% if @entry.newest_photo %>
    <%= @entry.newest_photo.shot_date_time %>
  <% end %>
  <% if @entry.oldest_photo %>
    <%= @entry.oldest_photo.shot_date_time %>
  <% end %>
</span>
<%= @entry.title %>
